<? if(!defined('UC_ROOT')) exit('Access Denied');?>
<? include $this->gettpl('header');?>

<div class="container">
	<? if($status) { ?>
		<div class="correctmsg"><p>成功清理的短消息数: <?=$delnum?></p></div>
	<? } ?>
	<h3 class="marginbot">
		<a href="admin.php?m=pm&a=ls" class="sgbtn">公共消息管理</a>
		<a href="admin.php?m=pm&a=send" class="sgbtn">发送公共消息</a>
		清理短消息
	</h3>
	<div class="note fixwidthdec"><p class="i">短消息中心消息总数: <?=$pmnum?></p></div>
	<div class="mainbox nomargin">
		<form action="admin.php?m=pm&a=clear" method="post">
			<input type="hidden" name="formhash" value="<?=FORMHASH?>">
			<table class="opt">
				<tr>
					<th colspan="2">不删除未读信息:</th>
				</tr>
				<tr>
					<td>
						<input type="radio" id="yes" checked="checked" class="radio" name="unread" value="1" /><label for="yes">是</label>
						<input type="radio" id="no" class="radio" name="unread" value="0" /><label for="no">否</label>
					</td>
				</tr>
				<tr>
					<th colspan="2">删除多少天以前的短消息:</th>
				</tr>
				<tr>
					<td><input type="text" class="txt" name="cleardays"></td>
					<td valign="top">不限制时间请输入 0</td>
				</tr>
				<tr>
					<th colspan="2">清理某用户的短消息:</th>
				</tr>
				<tr>
					<td><input type="text" class="txt" name="usernames"></td>
					<td valign="top">输入用户名，多个用户名用半角逗号“,”分隔</td>
				</tr>
			</table>
			<div class="opt"><input type="submit" name="submit" value=" 提 交 " class="btn" tabindex="3" /></div>
		</form>
	</div>
</div>

<? include $this->gettpl('footer');?>